package com.springboot.learn.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * @author wtcode
 * @Description
 * @date 2025/2/25 - 17:02
 */
@Aspect
public class Aspect2 {

    @Pointcut("within(com.springboot.learn.entity.C1)") //@1
    public void pc() {
    }

    @Before("pc()") //@2
    public void beforeAdvice(JoinPoint joinpoint) {
        System.out.println(joinpoint);
    }

}
